//C10:10_4
#include "Monitor.h"
#include <iostream>

Monitor::Monitor()
{
    count = 0;
}
Monitor::~Monitor()
{
    std::cout << " ~Monitor() has called!" << '\n';
}

void Monitor::incident()
{
    ++count;
}

void Monitor::print()
{
    std::cout << "count has been called :" << count << " \n";
}

void Monitor::display()
{
    static Monitor mt;

    mt.print();
}
